﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;


/// <summary>
/// The section in web.config containing CommerceDomainConfiguration settings 
/// </summary>
public class CommerceDomainConfigurationSection : ConfigurationSection
{
    [ConfigurationProperty("orderPrefix",
       DefaultValue = "")]
    public string orderPrefix
    {
        get { return (string)base["orderPrefix"]; }
        set { base["orderPrefix"] = value; }
    }
    [ConfigurationProperty("cartUrl",
       DefaultValue = "http://localhost/cart.aspx")]
    public string cartUrl
    {
        get { return (string)base["cartUrl"]; }
        set { base["cartUrl"] = value; }
    }
    [ConfigurationProperty("checkoutUrl",
       DefaultValue = "http://localhost/checkout.aspx")]
    public string checkoutUrl
    {
        get { return (string)base["checkoutUrl"]; }
        set { base["checkoutUrl"] = value; }
    }
    [ConfigurationProperty("PayPalECsuccessUrl",
       DefaultValue = "http://localhost/checkout3.aspx")]
    public string PayPalECsuccessUrl
    {
        get { return (string)base["PayPalECsuccessUrl"]; }
        set { base["PayPalECsuccessUrl"] = value; }
    }
    [ConfigurationProperty("PayPalECfailUrl",
       DefaultValue = "http://localhost/cart.aspx")]
    public string PayPalECfailUrl
    {
        get { return (string)base["PayPalECfailUrl"]; }
        set { base["PayPalECfailUrl"] = value; }
    }
    [ConfigurationProperty("loginPage",
       DefaultValue = "http://localhost/login.aspx")]
    public string loginPage
    {
        get { return (string)base["loginPage"]; }
        set { base["loginPage"] = value; }
    }
    [ConfigurationProperty("baseDomain",
       DefaultValue = "")]
    public string baseDomain
    {
        get { return (string)base["baseDomain"]; }
        set { base["baseDomain"] = value; }
    }
    [ConfigurationProperty("memberType",
       DefaultValue = "Customer")]
    public string memberType
    {
        get { return (string)base["memberType"]; }
        set { base["memberType"] = value; }
    }
    [ConfigurationProperty("memberGroup",
       DefaultValue = "Customers")]
    public string memberGroup
    {
        get { return (string)base["memberGroup"]; }
        set { base["memberGroup"] = value; }
    }
    [ConfigurationProperty("isProduction",
       DefaultValue = false)]
    public bool isProduction
    {
        get { return (bool)base["isProduction"]; }
        set { base["isProduction"] = value; }
    }
}